import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import './api/permission.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { getDicts } from '@/api/system/login'
import DictData from '@/components/DictData' 
// 字典标签组件
import DictTag from '@/components/DictTag'

Vue.config.productionTip = false
Vue.use(iView)
Vue.use(ElementUI);
// 全局方法挂载
Vue.prototype.getDicts = getDicts
// 全局组件挂载
Vue.component('DictTag', DictTag)
DictData.install()
// 全局注册分页组件
import Pagination from '@/components/Pagination'
Vue.component('Pagination', Pagination)
new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})